<?php 
/**
 *	description:ZMAXWECHAT 素材管理视图文件
 *  author：min.zhang
 *  Email:zhang19min88@163.com
 *	Url:http://www.zmax99.com
 *  copyright:南宁市程序人软件科技有限责任公司保留所有权利
 *  date:2016-04-28
 *  @license GNU General Public License version 3, or later
 *  check date:2016-05-26
 *  chcker :min.zhang
 */ 
 
defined('_JEXEC') or die('Restricted access');

class zmaxwechatViewMedia extends JViewLegacy
{
     function display($tpl = null)	 
	 {
		$this->item = $this->get('Item');		
		$this->form = $this->get('Form');
		$isNew = ($this->item->id < 1);

		if($isNew)
		{
			JToolBarHelper::title( JTEXT::_( 'COM_zmaxcdn_FIELD_ADDNEW') , 'generic.png');
		}else
		{
			JToolBarHelper::title( JTEXT::_( 'COM_zmaxcdn_FIELD_MODIFY') , 'generic.png');
		}
		JToolBarHelper::cancel('media.cancel',$isNew ? 'JTOOLBAR_CANCEL':'JTOOLBAR_CLOSE');			
		JToolBarHelper::title(JText::_("COM_ZMAXWECHAT_MEDIA_TITLE"));
		JToolBarHelper::apply('media.apply');
		
		JRequest::setVar('hidemainmenu' , true);
		parent::display($tpl);
	 }
	 
}